# coding=utf-8

from selenium import webdriver

chrome_options = webdriver.ChromeOptions()
# 使用无界面Chrome模式
# chrome_options.add_argument('--headless')
# chrome_options.add_argument('--disable-gpu')
browser = webdriver.Chrome(chrome_options=chrome_options)
browser.get('http://www.baidu.com')

browser.find_element_by_id('kw').send_keys('google')
browser.find_element_by_id('su').click()
browser.quit()
